package es.uem.listaactividades;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class Intents extends Activity {

	int request_Code = 1;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_intents);
	}

	public void onClickWebBrowser(View view) {
		Intent i = new Intent(android.content.Intent.ACTION_VIEW,
				Uri.parse("http://www.uem.es"));
		startActivity(i);
	}

	public void onClickMakeCalls(View view) {
		Intent i = new Intent(android.content.Intent.ACTION_DIAL,
				Uri.parse("tel:902232350"));
		startActivity(i);
	}

	public void onClickShowMap(View view) {
		Intent i = new Intent(android.content.Intent.ACTION_VIEW,
				Uri.parse("geo:40.37367,-3.919848?q=40.37367,-3.919848"));
		startActivity(i);

	}
}
